Important: These forums are for discussions between SkyDemon users. They are not routinely monitored by SkyDemon staff so any urgent issues should be sent directly to our Customer Support.

crash of skydemon with x-plae connectivity


Author
Message
poorterp
poorterp
Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)
Group: Forum Members
Posts: 28, Visits: 93
Hi Skydemon team,

first of all, nice software...
secondly, i love the fact that we are being able to learn your software ins and outs with connection
to flight simming. You provide X-plane which is OK but FS2004 and FSX are also around and it would be great to have it working.

I described already in topic 8081 the problem I have but I like a new topic here to follow it up.

I have trial version of skydemon 3.0.5 on ipad 3
I use FS2004 on winXp and win7 (this trial was done on the win7 and FS2004 computer)
to connect to FS2004 I use the software called FlightSimGPS which out of the other topic I understood must
provide the same data as X-plane and that is supposed working on FSX

When I start the X-plane connectivity on the IPAD skydemon indicated its waiting for location data but as soon as the FlightSimGPS connects to the FS2004 and starts to broadcast the GPS data the skydemon software closes down.

attached is a IP packet that I sniffed on the network on another computer which contains gps data. However, i see multiple
packets coming from FS

Frame 15: 73 bytes on wire (584 bits), 73 bytes captured (584 bits) on interface 0
Interface id: 0
Encapsulation type: Ethernet (1)
Arrival Time: Mar 23, 2014 10:47:59.936540000 Romance Standard Time
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1395568079.936540000 seconds
[Time delta from previous captured frame: 0.001232000 seconds]
[Time delta from previous displayed frame: 1.023976000 seconds]
[Time since reference or first frame: 2.458178000 seconds]
Frame Number: 15
Frame Length: 73 bytes (584 bits)
Capture Length: 73 bytes (584 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:udp:data]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II, Src: Dell_b0:36:18 (84:8f:69:b0:36:18), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Destination: Broadcast (ff:ff:ff:ff:ff:ff)
Address: Broadcast (ff:ff:ff:ff:ff:ff)
.... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
Source: Dell_b0:36:18 (84:8f:69:b0:36:18)
Address: Dell_b0:36:18 (84:8f:69:b0:36:18)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: IP (0x0800)
Internet Protocol Version 4, Src: 10.0.0.24 (10.0.0.24), Dst: 255.255.255.255 (255.255.255.255)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
Total Length: 59
Identification: 0x4144 (16708)
Flags: 0x00
Fragment offset: 0
Time to live: 128
Protocol: UDP (17)
Header checksum: 0xef56 [validation disabled]
Source: 10.0.0.24 (10.0.0.24)
Destination: 255.255.255.255 (255.255.255.255)
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]
User Datagram Protocol, Src Port: 61071 (61071), Dst Port: 49002 (49002)
Source port: 61071 (61071)
Destination port: 49002 (49002)
Length: 39
Checksum: 0xb42e [validation disabled]
Data (31 bytes)

0000 58 47 50 53 4d 53 46 53 2c 33 2c 34 39 34 2c 35 XGPSMSFS,3,494,5
0010 31 2c 31 34 38 36 2c 32 39 2c 39 2c 30 2c 30 1,1486,29,9,0,0
Data: 584750534d5346532c332c3439342c35312c313438362c32...
[Length: 31]

If more info is needed to try to solve this... fire away.. maybe i can assist
poorterp
poorterp
Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)
Group: Forum Members
Posts: 28, Visits: 93
Hi Skydemon team,

I think I have found already the reason why its not working but maybe you could protect your software better and just drop wrong info
coming in in stead of crashing.
I still need to find out how I can fix it but I think the following is suspicious :

after reading the foreflight SDK (found via some post) it indicated that the location should come in a string where each element is divided by a comma. What I see in the packet above is that the FlightSimGPS program is sending the value for lattitude and longitude in the form of 3,494 and 51,1486. In my windows settings our decimal point is a comma. As the comma is used as seperator the interpretation is screwed but you should not crash on it.

I'll try tonight if i can change this in my sim so it would send the point (decimal point) iso the comma.

Greetz Peter
Tim Dawson
Tim Dawson
SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)SkyDemon Team (678K reputation)
Group: Forum Members
Posts: 8.1K, Visits: 9.4K
Thanks, we've seen the log and we will indeed discard the garbage data without crashing in the future.

Your simulator should be sending the data in a well-defined format, though; it doesn't make sense for an internal protocol to format in a locale-specific way. Our parser uses a . as the decimal separator.
poorterp
poorterp
Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)Too Much Forum (3.5K reputation)
Group: Forum Members
Posts: 28, Visits: 93
Hi Tim,

in the mean time i changed the decimal point setting in windows into a point iso a comma and it works.
you are right, dont understand why the flightsimgps uses the windows setting for building up its message
and I send already a mail to the designer to see if he could adapt it.
If he does not respond or doesnt want to change it ill try the fsxflight which is payware but I had already
communication with the designer and he is very helping.

Greetz Peter

DavAir
DavAir
Too Much Forum (117 reputation)Too Much Forum (117 reputation)Too Much Forum (117 reputation)Too Much Forum (117 reputation)Too Much Forum (117 reputation)Too Much Forum (117 reputation)Too Much Forum (117 reputation)Too Much Forum (117 reputation)Too Much Forum (117 reputation)
Group: Forum Members
Posts: 1, Visits: 3
Congratulations. Your message to FlightSimGPS must have been successful because I have just installed it + FSUIPC and it works a treat. I can now run FSX on my PC and track it in Skydemon on my ipad (by launching X-Plane connectivity). This means that I can practice a trip the night before, then fly it for real the next day. Heaven Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Login

Explore
Messages
Mentions
Search